<?php


require_once('../class/member.php');

$member = new member;
$memberAccount = $member->checkUserAccount($_POST['username'],$_POST['password']);




if(empty($memberAccount)){
 $member->addMember($_POST['firstname'],$_POST['lastname'],$_POST['username'],$_POST['password']);
header('Location: ../index.php?signup=1');
}else{  
header('Location: ../index.php?signup=2');
}


?>
